import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { Aaa5Service } from './aaa5.service';
import { CreateAaa5Dto } from './dto/create-aaa5.dto';
import { UpdateAaa5Dto } from './dto/update-aaa5.dto';

@Controller('aaa5')
export class Aaa5Controller {
  constructor(private readonly aaa5Service: Aaa5Service) {}

  @Post()
  create(@Body() createAaa5Dto: CreateAaa5Dto) {
    return this.aaa5Service.create(createAaa5Dto);
  }

  @Get()
  findAll() {
    return this.aaa5Service.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.aaa5Service.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateAaa5Dto: UpdateAaa5Dto) {
    console.log(updateAaa5Dto)
    return this.aaa5Service.update(+id, updateAaa5Dto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.aaa5Service.remove(+id);
  }
}
